import Router from 'koa-router'
import RoomControler from '../controllers/RoomController'

/**
 * tip: 调用此处的api必须进行socket连接
 */
export const exampleRoute = new Router({
  prefix: '/room'    // 建议每个子路由设置一个url前缀
})
//http://localhost:3000/api/v1/room/

exampleRoute.post('/join', RoomControler.joinRoom)
exampleRoute.post('/leave', RoomControler.leaveRoom)  